package com.example.demo.mapper.mysqlMapper;

import com.example.demo.pojo.mysqlPojo.myUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface myUserMapper {

    @Select("select * from user")
    List<myUser> Select(String name);

    @Select("select id,username,password,birthday from user where id=#{id} ")
    myUser find(@Param("id")String id);

    @Insert("insert user(id,username,password,birthday) values(#{id},#{username},#{password},date#{birthday})")
    int insert(myUser u);
}
